import Vue from 'vue';
import VueRouter from 'vue-router';
import ciyun from "../views/ciyun";
import ciyuntwo from "../views/ciyuntwo";
import HonePage from "../views/HonePage";
import ShouYe from "../views/ShouYe";

Vue.use(VueRouter);

const routes = [
    {
        path: '/ciyuntwo',
        name: 'ciyuntwo',
        component: ciyuntwo,
        props: true
    },
    {
        path: '/HomePage',
        name: 'HomePage',
        component: HonePage,
        props: true,
        children: [
            {
                path: '/ShouYe',
                name: 'ShouYe',
                component: ShouYe,
                props: true
            },
            {
                path: '/ciyun',
                name: 'ciyun',
                component: ciyun,
                props: true
            }
        ]
    }
];

const router = new VueRouter({
    routes,
    // 去掉#号
    mode: 'history'
});

export default router
